package com.ruoyi.collect.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 菜谱收藏关系对象 recipe_collection_items
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
public class RecipeCollectionItems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏关系ID */
    private String id;

    /** 所属收藏夹ID */
    @Excel(name = "所属收藏夹ID")
    private String collectionId;

    /** 被收藏菜谱ID */
    @Excel(name = "被收藏菜谱ID")
    private String recipeId;

    /** 是否删除：0正常 1删除 */
    @Excel(name = "是否删除：0正常 1删除")
    private Integer del;

    /** recipes collections */
    @TableField(exist = false)
    private Collections collections; ;

    @TableField(exist = false)
    private CollectRecipes recipes;


    public Collections getCollections() {
        return collections;
    }

    public void setCollections(Collections collections) {
        this.collections = collections;
    }

    public CollectRecipes getRecipes() {
        return recipes;
    }

    public void setRecipes(CollectRecipes recipes) {
        this.recipes = recipes;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public void setCollectionId(String collectionId)
    {
        this.collectionId = collectionId;
    }

    public String getCollectionId()
    {
        return collectionId;
    }

    public void setRecipeId(String recipeId)
    {
        this.recipeId = recipeId;
    }

    public String getRecipeId()
    {
        return recipeId;
    }

    public void setDel(Integer del)
    {
        this.del = del;
    }

    public Integer getDel()
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("collectionId", getCollectionId())
            .append("recipeId", getRecipeId())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .append("collections", collections)
            .append("recipes", recipes)
            .toString();
    }
}
